package com.ocom.srvpaccess.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ocom.common.entity.access.EntityMjTimeInfo;

import java.util.List;

public interface TimeInfoService extends IService<EntityMjTimeInfo> {


    /**
     * 3、从门禁时段表mj_time_info查找记录：
     *
     * @return*/
    public List<EntityMjTimeInfo> selectGroupNo(Long companyId, Long perGroupNum, Long areaId);

     //从门禁时段表mj_time_info查找满足以下条件的记录，按time_no正向排序
     //com_id= companyID、group_no = role_i、zone_no = zoneNo、area_id = ( role_i < 17 ? 0 : areaNo )
    public List<EntityMjTimeInfo> selectTimeInfo(Long companyId, Long groupNo, Long zoneNo, Long areaId,Integer direction);

    //c)start_endtime增加：mj_time_info. start_time - mj_time_info. end_time
    public List<EntityMjTimeInfo> selectTimeInfo(Long companyId,Long pergroupnum);
}
